package com.ktgj.flight.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.flight.mapper.FlightInvoiceOperationMapper;
import com.ktgj.flight.domain.FlightInvoiceOperation;
import com.ktgj.flight.service.IFlightInvoiceOperationService;

/**
 * 补打发票操作信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-10-26
 */
@Service
public class FlightInvoiceOperationServiceImpl implements IFlightInvoiceOperationService 
{
    @Autowired
    private FlightInvoiceOperationMapper flightInvoiceOperationMapper;

    /**
     * 查询补打发票操作信息
     * 
     * @param invoiceId 补打发票操作信息ID
     * @return 补打发票操作信息
     */
    @Override
    public FlightInvoiceOperation selectFlightInvoiceOperationById(Long invoiceId)
    {
        return flightInvoiceOperationMapper.selectFlightInvoiceOperationById(invoiceId);
    }

    /**
     * 查询补打发票操作信息列表
     * 
     * @param flightInvoiceOperation 补打发票操作信息
     * @return 补打发票操作信息
     */
    @Override
    public List<FlightInvoiceOperation> selectFlightInvoiceOperationList(FlightInvoiceOperation flightInvoiceOperation)
    {
        return flightInvoiceOperationMapper.selectFlightInvoiceOperationList(flightInvoiceOperation);
    }

    /**
     * 新增补打发票操作信息
     * 
     * @param flightInvoiceOperation 补打发票操作信息
     * @return 结果
     */
    @Override
    public int insertFlightInvoiceOperation(FlightInvoiceOperation flightInvoiceOperation)
    {
        return flightInvoiceOperationMapper.insertFlightInvoiceOperation(flightInvoiceOperation);
    }

    /**
     * 修改补打发票操作信息
     * 
     * @param flightInvoiceOperation 补打发票操作信息
     * @return 结果
     */
    @Override
    public int updateFlightInvoiceOperation(FlightInvoiceOperation flightInvoiceOperation)
    {
        return flightInvoiceOperationMapper.updateFlightInvoiceOperation(flightInvoiceOperation);
    }

    /**
     * 批量删除补打发票操作信息
     * 
     * @param invoiceIds 需要删除的补打发票操作信息ID
     * @return 结果
     */
    @Override
    public int deleteFlightInvoiceOperationByIds(Long[] invoiceIds)
    {
        return flightInvoiceOperationMapper.deleteFlightInvoiceOperationByIds(invoiceIds);
    }

    /**
     * 删除补打发票操作信息信息
     * 
     * @param invoiceId 补打发票操作信息ID
     * @return 结果
     */
    @Override
    public int deleteFlightInvoiceOperationById(Long invoiceId)
    {
        return flightInvoiceOperationMapper.deleteFlightInvoiceOperationById(invoiceId);
    }
}
